package cn.zhf.shop.mapper;

import cn.zhf.shop.entity.lesson.Lesson;
import cn.zhf.shop.entity.search.LessonSearch;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface LessonMapper {
    int deleteByPrimaryKey(Integer lessonId);

    int insert(Lesson record);

    int insertSelective(Lesson record);

    Lesson selectByPrimaryKey(Integer lessonId);

    int updateByPrimaryKeySelective(Lesson record);

    int updateByPrimaryKey(Lesson record);

    List<Lesson> selectAll();

    List<Lesson> selectOverviewByName(String lessonName);

    List<Lesson> selectOverviewByType(String lessonType);

    List<Lesson> selectOverviewByDistrict(@Param("district") String district);

    List<Lesson> selectOverviewByCampus(String campusName);

    List<Lesson> selectByHead(int head);

    List<Lesson> selectByLessonIdAndLessonNameAndCampusAndLessonType2(@Param("lessonId")Integer lessonId,@Param("lessonName")String lessonName,@Param("campus")Integer campus,@Param("lessonType")String lessonType);

    List<Lesson> selectByLessonIdAndLessonNameAndCampusAndLessonType(String str);

    List<Lesson> selectByCampus(@Param("campusId")Integer campusId);

    List<Lesson> selectByLessonIdAndLessonNameAndCampusAndLessonType3(@Param("lessonId") Integer lessonId, @Param("lessonName") String lessonName, @Param("campus") Integer campus, @Param("lessonType") String lessonType, @Param("referenceId") Integer referenceId);

    List<Lesson> selectByLessonIdAndLessonNameAndCampusAndLessonType4(@Param("referenceId") Integer referenceId, @Param("str") String str);

    List<Lesson> selectByLessonIdAndLessonNameAndCampusAndLessonType5(@Param("lessonId") Integer lessonId, @Param("lessonName") String lessonName, @Param("campus") Integer campus, @Param("lessonType") String lessonType, @Param("head") Integer head);

    List<Lesson> selectByLessonIdAndLessonNameAndCampusAndLessonType6(@Param("head") Integer head, @Param("str") String str);

    List<Lesson> selectByLessonNameAndCampusAndUserId(LessonSearch lessonSearch);

}